# Maintainer: Felix Yan <felixonmars@archlinux.org>
# Contributor: Peter Simons <simons@cryp.to>
# Contributor: Stefan Husmann <stefan-husmann@t-online.de

pkgname=buddy
pkgver=2.4
pkgrel=6
pkgdesc="Binary Decision Diagram Library"
arch=('loong64' 'x86_64')
url='https://sourceforge.net/projects/buddy'
license=('custom')
depends=('gcc-libs')
source=("https://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz")
md5sums=('3b59cb073bcb3f26efdb851d617ef2ed')
sha256sums=('d3df80a6a669d9ae408cb46012ff17bd33d855529d20f3a7e563d0d913358836')

build() {
  cd "$srcdir/$pkgname-$pkgver"
  ./configure --prefix=/usr
  make
}
package() {
  cd "$srcdir/$pkgname-$pkgver"
  make DESTDIR="$pkgdir/" install
  install -d "$pkgdir/usr/share/licenses/$pkgname"
  install -m 444 README "$pkgdir/usr/share/licenses/$pkgname"
}
